<template>
  <div class="contents">
    <el-row :gutter="10" type="flex">
      <el-col :span="5">
        <el-date-picker
          v-model="formData.a1"
          type="daterange"
          range-separator="-"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          style="width: 200px;"
        ></el-date-picker>
      </el-col>
      <el-col :span="4">
        <el-select v-model="formData.a2" placeholder="状态">
          <el-option
            v-for="item in opt1"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </el-select>
      </el-col>
      <el-col :span="6">
        <el-input v-model="formData.a3" placeholder="分割商品">
          <el-button slot="append" icon="el-icon-search"></el-button>
        </el-input>
      </el-col>
    </el-row>
    <el-table :data="table1" style="width: 100%; margin-top: 10px;">
      <el-table-column prop="address" label="分割单号"></el-table-column>
      <el-table-column prop="address" label="分割材料"></el-table-column>
      <el-table-column prop="address" label="单位"></el-table-column>
      <el-table-column
        prop="address"
        label="原材料消耗量"
        width="120px"
      ></el-table-column>
      <el-table-column
        prop="address"
        label="获得成品总量"
        width="120px"
      ></el-table-column>
      <el-table-column prop="address" label="损耗量"></el-table-column>
      <el-table-column prop="address" label="成品入库单"></el-table-column>
      <el-table-column prop="address" label="原料出库单"></el-table-column>
      <el-table-column prop="address" label="状态"></el-table-column>
      <el-table-column prop="address" label="操作人"></el-table-column>
    </el-table>
    <el-pagination
      background
      layout="total, prev, pager, next,sizes, jumper"
      :page-size="10"
      :page-sizes="[10, 20, 30, 40]"
      style="text-align: right;"
      :total="0"
    />
  </div>
</template>

<script>
  export default {
    data() {
      return {
        formData: {
          a1: '',
          a2: '',
          a3: '',
        },
        opt1: [
          {
            value: '0',
            label: '全部状态',
          },
          {
            value: '1',
            label: '待审核',
          },
          {
            value: '2',
            label: '已审核',
          },
          {
            value: '3',
            label: '已取消',
          },
        ],
        table1: [],
      }
    },
  }
</script>

<style lang="scss" scoped>
  .contents {
    padding: 10px 20px;
  }
</style>
